<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	 <base href="__STATIC__/Admin/">
	<link href="styles/general.css" rel="stylesheet" type="text/css" />
	<link href="styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<style>
	.pagination{text-align:center;margin-top:20px;margin-bottom: 20px;}  
.pagination li{margin:0px 10px; border:1px solid #e6e6e6;padding: 3px 8px;display: inline-block;}  
.pagination .active{background-color: #46A3FF;color: #fff;}  
.pagination .disabled{color:#aaa;}
</style>
<h1>
	<span class="action-span"><a href="{:url('Admin/Member/member_add')}">添加会员</a></span>
	<span class="action-span1"><a href="index.php?act=main">SHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 商品列表 </span>
	<div style="clear:both"></div>
</h1>
<div class="form-div">
  <form action="" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH">
      
  </form>
</div>

  <!-- start goods list -->
	<div class="list-div" id="listDiv">
		<table cellpadding="3" cellspacing="1">
			<tbody> 

				<tr>
					<th>会员名称</th>
					<th>邮件</th>
					<th>性别</th>
					<th>手机</th>
					<th>QQ</th>
					<th>操作</th>
				</tr>
				<tr></tr>
				{volist name="memberlist" id="vo"}
					<tr>
						<td class="first-cell" align="center">
						<span name="{$vo.user_id}" class="upd">{$vo.user_name}</span>
						</td>
						<td align="center"><span>{$vo.email}</span></td>
					    <td align="center"> 
					    <span>{if condition="$vo.sex eq '1'"}男
							  {else /} 女
							  {/if}
						</span>
						</td>
						<td align="center"><span onclick="">{$vo.mobile_phone}</span></td>
						<td align="center">
						<span name="{$vo.user_id}" id="edit">{$vo.qq}</span>
						<input type="hidden" name="gai" value="{$vo.qq}">
						</td>
						<td align="center">
      <a href="{:url('Admin/Member/member_edit')}?user_id={$vo.user_id}" title="编辑"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
      <a href="{:url('Admin/Member/collect_goods_area')}" title="收货地址"><img src="images/book_open.gif" border="0" height="16" width="16" /></a>
      <a href="{:url('Admin/Member/select_order')}" title="查看订单"><img src="images/icon_view.gif" border="0" height="16" width="16" /></a>
      <a href="javascript:void(0)" title="哦洗吧" id="multiple_edit"><img src="images/icon_account.gif" border="0" height="16" width="16" /></a>
      <a href="{:url('Admin/Member/del_member')}?user_id={$vo.user_id}" title="移除"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a>
    </td>

					</tr>
				{/volist}
	
  <!-- end 这段代码没有格式化，只是暂时显示数据用 开发的时候将会删除-->
  </tbody>
 </table>

	<!-- 分页 -->
		{$page}	
							
			
</div>

<!-- <div>
	<input type="hidden" name="act" value="batch">
	<select name="type" id="selAction" onchange="changeAction()">
		<option value="">请选择...</option>
		<option value="trash">回收站</option>
		<option value="on_sale">上架</option>
		<option value="not_on_sale">下架</option>
		<option value="best">精品</option>
		<option value="not_best">取消精品</option>
		<option value="new">新品</option>
		<option value="not_new">取消新品</option>
		<option value="hot">热销</option>
		<option value="not_hot">取消热销</option>
		<option value="move_to">转移到分类</option>
		<option value="suppliers_move_to">转移到供货商</option>
	</select> -->
    <!-- <input type="hidden" name="extension_code" value="">
    <input type="submit" value=" 确定 " id="btnSubmit" name="btnSubmit" class="button" disabled="true"> -->
<!-- </div> --> 

<div id="footer">
	版权所有 &copy; 2006-2013 软工教育 - 高级PHP - 
</div>
</body>
<script src="__STATIC__/jq.js"></script>
<script>
// $(document).on('click','.quan',function(){
// 	 var checkboxes=document.getElementsByName('checkboxes');
//             for(var i=0;i<=checkboxes.length;i++){
//             	if (checkboxes[i].checked==true) {
//             		checkboxes[i].checked=false;
//             	}else{
//             		checkboxes[i].checked=true;
//             	}
//          }
// })
// $(document).on('click','.button',function(){
// 	var checkboxes=document.getElementsByName('checkboxes');
// 	    for(var i=0;i<=checkboxes.length;i++){
//             if (checkboxes[i].checked==true) {
//             	var ck_val=$("#child").val();// 选中的值
//             	alert(ck_val)
//             }
//         }     		
// })


</script>
<script>
$(document).on('click','#edit',function(){
 	var obj=$(this);
	obj.hide();
	obj.next().prop("type","text");
	$('input[name="gai"]').focus();
})

$(document).on('blur','input[name="gai"]',function(){
	var obj=$(this);
	var qq=obj.val();
	var user_id=obj.prev().attr("name");
	$.ajax({
		url:"{:url('Admin/Member/edit_qq')}",
		data:{qq:qq,user_id:user_id},
		type:"post",
		dataType:"json",
		success:function(e){
			obj.prop("type","hidden");
			obj.prev().show().html(e);
		}
	})
})

$(document).on('click','#multiple_edit',function(){
	
})
</script>
</html>
